import request from '@/utils/request'

/**
 *
 * @param {*} loginForm
 * @returns
 */
export const reqLogin = (loginForm) => {
  return request({
    method: 'post',
    url: '/sys/login',
    data: loginForm
  })
}

/**
 * 获取用户基本信息
 * @returns
 */
export const reqProfile = () => {
  return request({
    method: 'post',
    url: '/sys/profile'
  })
}

/**
 *获取用户信息带头像
 * @param {*} id
 * @returns
 */
export const reqUserInfo = (id) => {
  return request({
    method: 'get',
    url: `/sys/user/${id}`
  })
}
